package com.example.messageservice;

import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import java.util.List;

public class MainActivity extends AppCompatActivity {
    private TextView textview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textview = (TextView) findViewById(R.id.textview);
        findViewById(R.id.start).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                HttpUtil.getInstance().sendGet("http://139.196.106.232:8888/WebForm3.aspx?Latitude=1111&Longitude=2222&code=121212");
                Intent mIntent = new Intent(MainActivity.this, MessageService.class);
                startService(mIntent);
            }
        });
    }

}
